package com.kaifamiao.N0718;

import java.util.Random;
import java.util.Scanner;

public class Work4 {

    public static void main(String[] args) {

        System.out.println("请输入你想要的阶乘数：");

        Scanner sc = new Scanner(System.in);
        int z = sc.nextInt();

        int y = 1;

        for (int x = 1; x <= z; x++) {
            y *= x;
        }
        System.out.println(y);
    }
}
